<template>
  <div class="hpc_nav">
    <div class="box">
      <img
        src="@/assets/img/首页头.png"
        alt=""
        v-show="this.$route.meta.showtop"
      />

      <!-- 砍价 -->
      <button v-show="this.$route.meta.shoukan" @click="this.$router.goBack">
        返回
      </button>
      <span v-show="this.$route.meta.shoukan">砍价列表</span>

      <!-- 专题 -->
      <button v-show="this.$route.meta.xiangqing" @click="this.$router.goBack">
        返回
      </button>
      <span v-show="this.$route.meta.xiangqing">专栏详情</span>

      <button v-show="this.$route.meta.kanlie" @click="this.$router.goBack">
        返回
      </button>
      <span v-show="this.$route.meta.kanlie">严选专栏</span>

      <!-- 商品详情 -->
      <button v-show="this.$route.meta.shopcar" @click="this.$router.goBack">
        返回
      </button>
      <!-- 分类 -->
      <input
        type="text"
        class="fenlei"
        v-show="this.$route.meta.fenlei"
        placeholder="回车搜索商品"
      />
      <!-- 分类商品 -->
      <button
        v-show="this.$route.meta.fenleishang"
        @click="this.$router.goBack"
      >
        返回
      </button>
      <span v-show="this.$route.meta.fenleishang">分类商品</span>

      <!-- 我的订单 -->
      <button
        v-show="this.$route.meta.Myorder"
        @click="this.$router.goBack"
      >
        返回
      </button>
       <span v-show="this.$route.meta.Myorder">我的订单</span>

       <!-- 订单详情 -->
      <button
        v-show="this.$route.meta.orderdetails"
        @click="this.$router.goBack"
      >
        返回
      </button>
       <span v-show="this.$route.meta.orderdetails">订单详细</span>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.hpc_nav {
  width: 100%;
  height: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}
.box {
  width: 100%;
  height: 8vh;
  text-align: center;
}
img {
  width: 3rem;
}
.div1 {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0.5rem 0;
  i {
    font-size: 1rem;
  }
}
.fenlei {
  width: 7.47rem;
  height: 1.35rem;
  background: #f5f5f5;
  border: none;
  border-radius: 0.2rem;
  margin: 0.5rem 0;
}
</style>